package com.learn.designPatterns.behavioral.chainOfResponsibility;

/**
 * @classname:
 * @Description:
 * @author: yfpu
 * @Date: 2018-09-12 19:25
 */
public class Client {

    public static void main(String[] args) {
        ConcreteHandler1 concreteHandler1 = new ConcreteHandler1(null);
        ConcreteHandler2 concreteHandler2 = new ConcreteHandler2(concreteHandler1);

        concreteHandler1.handleRequest(new Request(RequestType.TYPE_1, "request1"));
        concreteHandler2.handleRequest(new Request(RequestType.TYPE_2, "request2"));
    }
}
